load("//eden/scm:targets.bzl", "rust_python_library")

oncall("sapling")

rust_python_library(
    name = "cpython-async",
    srcs = glob(["src/**/*.rs"]),
    autocargo = {"cargo_toml_config": {
        "lib": {"name": "cpython-async"},
        "package": {"name": "sapling-cpython-async"},
    }},
    crate_root = "src/lib.rs",
    test_deps = ["fbsource//third-party/rust:tokio"],
    deps = [
        "fbsource//third-party/rust:anyhow",
        "fbsource//third-party/rust:futures",
        "//eden/scm/lib/async-runtime:async-runtime",
        "//eden/scm/lib/cpython-ext:cpython-ext",
    ],
)
